#!/usr/bin/env python
# -*- coding:utf-8 -*-

# 可变参数
def calc(*numbers):
    sum = 0
    for x in numbers:
        sum = sum + x * x
    return sum


print(calc(1, 2, 3, 4, 5))


# 关键字参数
def person(name, age, **kw):
    print('name:', name, 'age', age, 'other', kw)


print(person('Michael', 29))
print(person('Michael', 28, city='Beijing'))
